# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-fsspec
pkgver=0.8.0
pkgrel=0
pkgdesc="A specification for pythonic filesystems"
url="https://github.com/intake/filesystem_spec"
arch="noarch !mips !mips64" # Blocked by py3-numpy
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-numpy"
source="https://github.com/intake/filesystem_spec/archive/$pkgver/filesystem_spec-$pkgver.tar.gz"
builddir="$srcdir/filesystem_spec-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest -vra
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="55513650f1795657ce274478d4360f2cfc3d2bbd8114df7a458fb3a20277b1594e48b5be38e26154a3af525a169f1e4b3d3c0e387bf3889b78350bacf12cc02b  filesystem_spec-0.8.0.tar.gz"
